package com.zxy.ziems.server.alarm.enums;

public enum AlarmTypeEnum {
    FIRE( "消防探测器告警"),
    DEVICE("设备"),
    GAS("可燃气体报警");
    ;
    private final String info;

    AlarmTypeEnum(String info) {
        this.info = info;
    }

    public String getInfo() {
        return info;
    }

    public static String getByInfo(String info) {
        for (AlarmTypeEnum value : values()) {
            if (value.getInfo().equals(info)) {
                return value.getInfo();
            }
        }
        return null;
    }


}
